<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class UserModel extends Model
{
    use HasFactory;

    protected $table = "user";

//    protected $timestamps = false;

    protected $dateFormat = 'U';

    public static function memberOut($data){

        return self::insert($data);

    }

    public static function page(){
        return self::paginate(3);
    }

    public static function del($id){
        return self::where($id)->delete();
    }
}
